/* test_axis.cpp */

#include <iostream>
#include <string>
#include <dodo_plot/dodo_plot.h>

using namespace std;
using namespace dodo_plot;
using namespace dodo_plot::color_name;

int main(int argc, char *argv[])
{
	Blank blank(800, 600);
	Cross cross(1, 1);

	Axis axb (-5, 15, 3, 6, 4, BOTTOM);
	Axis axl (0.3, 0.9, 0.3, 0.3, Axis::MINOR_LOG, LEFT);
	Axis axr (300, 600, 100, 150, 9,  RIGHT);
	Axis axt (0, 100, 10, -3, 2,  TOP);
	cout << axl.width() << " " << axl.height() << endl;
	Picture final =  (axt & ( axl | cross | axr ) & axb );
	final = blank + frame(final, 600, 400);

	Canvas canvas;
	canvas.draw(final);
	canvas.write_png("axis.png");



	return 0;
}

